package com.itic.appbase.applications.mangodb;

import java.util.List;
import java.util.Map;

public interface IMongodbDao<T> {

	public void insert(T t); 
	
    public T findOne(String id);   
    
    public List<T> findAll();   
    
    public void removeOne(String id);   
    
    public void removeAll();   
   
    public void update(String id, Map<String, Object> params);
    
    public void saveOrUpdate(String id, Map<String, Object> params);
   
}
